﻿@model EF.Models.Product
@{
    ViewBag.Title = "Product Detail";
}
<h3>THÔNG TIN CHI TIẾT</h3>
<ul>
    <li>Id: @Model.Id</li>
    <li>Name: @Model.Name</li>
    <li>Unit Price: @Model.UnitPrice</li>
    <li>Product Date: @Model.ProductDate</li>
    <li>Category: @Model.Category.NameVN</li>
</ul>

<h3>HÀNG CÙNG LOẠI</h3>
<ul>
    @foreach (var prod in Model.Category.Products)
    {
        <li><a href="/Product/Detail/@prod.Id">@prod.Name</a></li>
    }
</ul>